<?php
/**
 * 公众号查件记录接口
 * @author lss
 * 2017-03-02
 */
namespace soa\mp;

use soa\client;

class Favorite  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//收藏快递员
	public function collect($platform,$openid,$courierPhone){
		return $this->post("api/Favorite/collect",compact('platform','openid','courierPhone'));
	}

	//取消收藏快递员
	public function cancel($platform,$openid,$courierPhone){
		return $this->post("api/Favorite/cancel",compact('platform','openid','courierPhone'));
	}

	//是否已收藏此快递员
	public function isCollected($platform,$openid,$courierPhone){
		return $this->post("api/Favorite/isCollected",compact('platform','openid','courierPhone'));
	}

	//拉取收藏快递员列表
	public function getList($platform,$openid,$extraInfo,$pageNum = "",$pageSize = "",$orderBy = ""){
		return $this->post("api/Favorite/getList",compact('openid','platform','extraInfo','pageNum','pageSize','orderBy'));
	}
}